package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 设备上下线日志
 * </p>
 *
 * @author wumu
 * @since 2019-06-21
 */
public class DevDeviceStatus extends Model<DevDeviceStatus> {

    private static final long serialVersionUID = 1L;

    /**
     * 设备编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 节点
     */
    private String node;

    /**
     * 开始时间
     */
    private Long startTime;

    /**
     * 判断掉线还是上线0：掉线，1：上线
     */
    private Integer status;

    private String name;

    private String eui;

    private String tenantId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEui() {
        return eui;
    }

    public void setEui(String eui) {
        this.eui = eui;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DevDeviceStatus{" +
        "id=" + id +
        ", node=" + node +
        ", startTime=" + startTime +
        ", status=" + status +
        ", name=" + name +
        ", eui=" + eui +
        ", tenantId=" + tenantId +
        "}";
    }
}
